package com.happycat.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.happycat.base.context.BaseContextHandler;
import com.happycat.console.model.CatGift;
import com.happycat.console.service.ICatGiftService;
import com.happycat.mapper.CatGiftMapper;
import com.happycat.mapper.UserPackageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 礼品Service业务层处理
 *
 * @author verne
 * @date 2020-07-18
 */
@Service
public class CatGiftServiceImpl extends ServiceImpl<CatGiftMapper, CatGift> implements ICatGiftService {
    @Autowired
    private UserPackageMapper userPackageMapper;

    @Override
    public List<CatGift> getAllPackgeGift() {
        return userPackageMapper.getAllPackgeGift(BaseContextHandler.getUserId());
    }
}
